﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCommon
{
    /// <summary>
    /// 缓存特性，在使用缓存的地方添加这个特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Method,Inherited =true)]
    public class CachingAttribute:Attribute
    {
        /// <summary>
        /// 缓存绝对过期时间（分钟）
        /// </summary>
        public int AbsoluteExpiration { get; set; } = 30;
    }
}
